From b6a843a05b0700722f7e001e89bc6670dc64c141 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Tue, 20 Oct 2020 17:33:15 +0200 Subject: [PATCH] gl renderer: Fix two scale_x/y mixups --- gsk/gl/gskglrenderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index fb742a18a9..94960bc645 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -2390,7 +2390,7 @@ render_outset_shadow_node (GskGLRenderer *self, if (slice_is_visible (&slices[NINE_SLICE_TOP_CENTER])) { x1 = min_x + (slices[NINE_SLICE_TOP_LEFT].width / scale_x); - x2 = max_x - (slices[NINE_SLICE_TOP_RIGHT].width / scale_y); + x2 = max_x - (slices[NINE_SLICE_TOP_RIGHT].width / scale_x); y1 = min_y; y2 = min_y + (slices[NINE_SLICE_TOP_CENTER].height / scale_y); @@ -2487,7 +2487,7 @@ render_outset_shadow_node (GskGLRenderer *self, { x1 = min_x; x2 = min_x + (slices[NINE_SLICE_LEFT_CENTER].width / scale_x); - y1 = min_y + (slices[NINE_SLICE_TOP_LEFT].height / scale_x); + y1 = min_y + (slices[NINE_SLICE_TOP_LEFT].height / scale_y); y2 = max_y - (slices[NINE_SLICE_BOTTOM_LEFT].height / scale_y); tx1 = tregs[NINE_SLICE_LEFT_CENTER].x; tx2 = tregs[NINE_SLICE_LEFT_CENTER].x2; -- 2.30.2